package com.qiaodata.datatrans.web;

import com.alibaba.fastjson.JSONObject;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by Administrator on 2017/2/6 0006.
 */
@RestController
public class Test {

    @RequestMapping("/testjson")
    public Object testjson(@RequestBody JSONObject json) {
        JSONObject testjson = json;
        Object personid = testjson.get("personid");

        return personid.toString();
    }
}
